package psn.zjk.common.jdk;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @USER white
 * @DATETIME 2021/1/9 9:47
 */
public class ArraysToList {

    public static List<Integer> convert(int[] nums) {
        List<Integer> collect = Arrays.stream(nums).boxed().collect(Collectors.toList());
        return collect;
    }


    public static void main(String[] args) {
    }

}
